window.onload = function () {
    layer.confirm('帐号或密码错误，是否继续登录？', {
       icon: 4,
       btn: ['确认','取消']
	}, function(){
	  location.href= window.ctx+'/'; 
	},function(){
	  location.href= window.ctx+'/'; 
 	});
 };